
// Cloud Float...
    var $main = $cloud = mainwidth = null;
    var offset1 = 950;
    var offset2 = 0;
    var offset3 = 800;
	
	var offsetbg = 0;
    
    $(document).ready(
        function () {
            $main = $("#mainBody");
			$body = $("body");
            $cloud1 = $("#cloud1");
            $cloud2 = $("#cloud2");
            $cloud3 = $("#cloud3");
			
            mainwidth = $main.outerWidth();
         
        }
    );

    /// 飘动
    setInterval(function flutter() {
        try {
            if (offset1 >= mainwidth) {
                offset1 = -580;
            }

            if (offset2 >= mainwidth) {
                offset2 = -580;
            }
            if (offset3 >= mainwidth) {
                offset3 = -180;
            }

            offset1 += 1.1;
            offset2 += 1;
            offset3 += 0.5;
            $cloud1.css("background-position", offset1 + "px 100px")
            $cloud2.css("background-position", offset2 + "px 460px")
            $cloud3.css("background-position", offset3 + "px 620px")
        }
        catch (e) {
        }
    }, 70);
	
	
	setInterval(function bg() {
        if (offsetbg >= mainwidth) {
            offsetbg =  -580;
        }

        offsetbg += 0.9;
        try {            
            $body.css("background-position", -offsetbg + "px 0")
            $body[0].style.backgroundColor = "#1c77ac";
        }
        catch (e) { }
    }, 90 );
	